Skip to content

fix(LDAP): use displayname from DB, before reaching out to LDAP#59025

Merged
blizzz merged 3 commits intomasterfrom
perf/noid/ldap-displayname-from-db
Mar 18, 2026
Merged

fix(LDAP): use displayname from DB, before reaching out to LDAP#59025
blizzz merged 3 commits intomasterfrom
perf/noid/ldap-displayname-from-db

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Mar 18, 2026

Summary

As we do it with other information of the user, we now use the known value
of a users displayname, and leave the updating to the background job. This
improves performance of user facing actions where the display name is
required and reduces queries to the LDAP server that are typically more
expensive.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@blizzz blizzz added this to the Nextcloud 34 milestone Mar 18, 2026
@blizzz blizzz requested review from CarlSchwan and come-nc March 18, 2026 09:57
@blizzz blizzz requested a review from a team as a code owner March 18, 2026 09:57
@blizzz blizzz removed the request for review from a team March 18, 2026 09:57
@blizzz blizzz added the bug label Mar 18, 2026
@blizzz
Copy link
Member Author

blizzz commented Mar 18, 2026

/backport to stable33

@blizzz
Copy link
Member Author

blizzz commented Mar 18, 2026

/backport to stable32

@blizzz blizzz force-pushed the perf/noid/ldap-displayname-from-db branch from a6d51d6 to 52bc492 Compare March 18, 2026 10:28
blizzz added 3 commits March 18, 2026 11:34
As we do it with other information of the user, we now use the known value
of a users displayname, and leave the updating to the background job. This
improves performance of user facing actions where the display name is
required and reduces queries to the LDAP server that are typically more
expensive.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz force-pushed the perf/noid/ldap-displayname-from-db branch from 52bc492 to badd759 Compare March 18, 2026 10:41
@blizzz
Copy link
Member Author

blizzz commented Mar 18, 2026

/backport to stable31

@blizzz blizzz merged commit 3be8a65 into master Mar 18, 2026
204 of 212 checks passed
@blizzz blizzz deleted the perf/noid/ldap-displayname-from-db branch March 18, 2026 12:52
@backportbot
Copy link

backportbot bot commented Mar 18, 2026

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/59025/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 1c018957 0ace5473 badd759f

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/59025/stable31

Error: Failed to push branch backport/59025/stable31: remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/nextcloud/server.git/'


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants